package com.wanmait.baohan.exception;

public class UsernameException extends RuntimeException {
    public UsernameException(String message, String username) {
        super(message);
        this.username = username;
    }
    public UsernameException(String username) {
        super("用户名异常");
        this.username = username;
    }

    private String username;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }
}
